package com.xuhui.xuaiagent.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.BindingResultUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.CompletableFuture;

@RestController
@RequestMapping("/health")
@Slf4j
public class HealthController {

    @GetMapping
    public String healthCheck() {
        CompletableFuture.runAsync(() -> {
            log.error("CompletableFuture runAsync");
        });
        return "ok";
    }
}
